// globalApi.js
const request = require('./config/request')
const {
  BASEAPIAIIIIN,
  BASEAPIURL
} = require('./config/config')
module.exports = {
  getUserinfoForToken(data = {}) {
    let url = BASEAPIAIIIIN + '/app/userinfoauth/getcurrentuserauth'
    return request.post({
      url,
      data
    })
  },
  getuserbaseinformation(data = {}) {
    let url = BASEAPIAIIIIN + '/app/userinfoauth/userlogin'
    return request.post({
      url,
      data
    })
  },
  dailylogin(data = {}) {
    let url = BASEAPIAIIIIN + '/app/share/dailylogin'
    return request.post({
      url,
      data
    })
  },
  // 获取openID,UID
  getID(data) {
    let url = BASEAPIURL + '/api/app/we-chat-min/get-info-by-login-code'
    return request.post({
      url,
      data
    })
  },

  // 查询用户状态
  getuserstatusasync(data={}) {
    let url = BASEAPIAIIIIN + '/app/userinfoauth/getuserstatusasync'
    return request.post({
      url,
      data
    })
  },
  // 查询用户状态
  userbrief(data={}) {
    let url = BASEAPIAIIIIN + '/app/content/userbrief'
    return request.post({
      url,
      data
    })
  },

}